package com.jiankang.controller;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.jiankang.entity.Symptom;
import com.jiankang.service.SymptomService;
//体质我的体质
@Controller
@RequestMapping("/Symptom")
public class SymptomController {
	@Resource
	private SymptomService symptomService;
	@RequestMapping("/constitution")
	public String constitution(HttpServletRequest request,Model model){
		List<Symptom> symptom=symptomService.constitution();
		model.addAttribute("symptom",symptom);
		return "admin/symptom";
	}
}	
